<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<html:form action="/Forum/Post" styleId="forma">
    
    <html:hidden property="id"/>
    <html:hidden property="parent_id"/>
    
    <table>
        <tr>
            <td>Title:</td><td>
                <div class="errorMessage"><html:errors property="title"/></div>
                <html:text property="title"/>
            </td>
        </tr>
        <tr>
            <td>Email:</td><td>
                <div class="errorMessage"><html:errors property="email"/></div>
                <html:text property="email"/>
            </td>
        </tr>
        <tr>
            <td>Author:</td><td><html:text property="author"/></td>
        </tr>
        <tr>
            <td>Text:</td><td>
                <div class="errorMessage"><html:errors property="text"/></div>
                <html:textarea property="text" cols="60" rows="7"/>
            </td>
        </tr>
    </table>
    <a class="button" href="javascript: document.getElementById('forma').reset()">Reset</a>
    <a class="button" href="javascript: document.getElementById('forma').submit()">Submit</a>
</html:form>